/**
 * Created with IntelliJ IDEA.
 * Description:
 */
public class TestDemo {
    public static void main(String[] args) {
        int[] a = {0,1,2,3,4,5,6,7,8,9,10};
        int[] b = {0,0,0,0,0,0,0,0,0,0,0};
        for (int i = 0; i < 11; i++) {
            if(i < a.length/2){
                b[i] = a[2*i+1];
            }else {
                b[i] = a[(i-a.length/2)*2];
            }
        }
        for (int i = 0; i < 11; i++) {
            System.out.print(b[i]+" ");
        }
    }
}
